/* 
 * File:   driverSensors_mpu.h
 * Author: bram
 *
 * Created on November 23, 2013, 7:57 PM
 */

#ifndef DRIVERSENSORS_MPU_H
#define	DRIVERSENSORS_MPU_H

#ifdef	__cplusplus
extern "C" {
#endif

	#define IMU_ACC_AXIS_X 2
	#define IMU_ACC_AXIS_Y 0
	#define IMU_ACC_AXIS_Z 4
	#define IMU_ACC_AXIS_X_SIGN +
	#define IMU_ACC_AXIS_Y_SIGN +
	#define IMU_ACC_AXIS_Z_SIGN +

	#define IMU_GYRO_AXIS_X 8
	#define IMU_GYRO_AXIS_Y 10
	#define IMU_GYRO_AXIS_Z 12
	#define IMU_GYRO_AXIS_X_SIGN +
	#define IMU_GYRO_AXIS_Y_SIGN +
	#define IMU_GYRO_AXIS_Z_SIGN +

    #define MPU6050_ADDRESS		0xD0 // or 0xD2


	// 1.4mhz haalt ie -- spec zegt 400khz
	#define MPU6050_SPEED		1400000 / 10000			// 1.4mhz


	void mpu6050FreqChanged(const void * ref, const void * value);
	void mpu6050LPFChanged(const void * ref, const void * value);
    void mpu6050GyroRangeChanged(const void * ref, const void * value);
    void mpu6050AccRangeChanged(const void * ref, const void * value);
	void mpu6050Reset();

#ifdef	__cplusplus
}
#endif

#endif	/* DRIVERSENSORS_MPU_H */

